import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
import { staticRoutes } from '@/router/routes';

const router = createRouter({
  history: createWebHashHistory(),
  routes: staticRoutes,
  scrollBehavior() {
    return { top: 0, left: 0 }
  },
})

// 导出路由
export default router;